//返回主页面
$("#fh").click(function () {
    window.location = '';
})
//页面刷新
$("#sx").click(function () {
    window.location = 'examinee.html';
})
$("#confirm").click(function (){
    let val = $("#orderId").val();
    console.log(val)
    $.ajax({
        type: "get",
        url:"/order/intermediate/confirm",
        data:{"orderId":val},
        dataType:"json",
        success:function (res) {
            $("#statusl").html("当前订单状态：已发货");
            $("#Buttonll").addClass("dipy");
            parent.refresh();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        }
    })

})
var form;
layui.use(['form','layer'],function (){
    form = layui.form;
    var layer = layui.layer;

    $("#amend").click(function (){
        layer.open({
            type:2,
            title:'修改地址',
            content:"Amend.html",
            area:['80%','80%']
        })
    })
})
function address(a){
    $("#orderSite").val(a);
}
function Refresh(){
    parent.refresh();
}